<template>
  <router-view />
</template>

<script setup>
import { onMounted } from 'vue'
import { useAuthStore } from './stores/auth'

const authStore = useAuthStore()

onMounted(() => {
  // 检查本地存储的token
  authStore.checkAuth()
})
</script>

<style>
#app {
  min-height: 100vh;
}
</style> 